package com.luoy.json;

import cn.hutool.json.JSONUtil;

/**
 * @desc:
 * @author: luoy
 * @date: 2021-03-18 09:40
 */
public class HutoolJson {

    public static void main(String[] args) {
        String s = "[{\"name\":\"cs\",\"id\":\"1607592685036\",\"type\":\"DATA_PUSH\",\"runFlag\":\"NORMAL\",\"description\":\"\",\"taskInstancePriority\":\"\",\"workerGroupId\":\"\",\"maxRetryTimes\":0,\"retryInterval\":1,\"autoAnalysis\":\"TRUE\",\"params\":{\"dbName\":\"ysk\",\"tableName\":\"pjc_t_zd_gx\",\"mark\":\"bm\",\"ftpurl\":\"1\",\"ftpuser\":\"pufr\",\"ftppassword\":\"2aystbz@SUGON\",\"port\":\"1\",\"startTime\":\"2020-12-10 17:32:22\",\"ftpCatalog\":\"1\",\"sendUnitCode\":\"1\",\"dataReceiveLogo\":\"1\",\"sendUnitName\":\"1\",\"columns\":[\"bm\",\"jlbh\"],\"resourceList\":[{\"res\":\"\"}]},\"outputName\":\"\",\"dependence\":{},\"icon\":\"menu-icon iconDp menu-orange-2 iconfont\",\"template\":\"SquareItem\",\"label\":\"数据推送\",\"form\":\"DataPushConfForm\",\"window_id\":766,\"project\":\"test0001\",\"run_status\":\"\",\"style\":{\"left\":\"520px\",\"top\":\"520px\"},\"handle_data\":[{\"label\":\"查看日志\",\"type\":\"look_log\"},{\"label\":\"删除节点\",\"type\":\"delete_square_item\"}]}]";
        cn.hutool.json.JSON locations = JSONUtil.parse(s);

        Object byPath = locations.getByPath("[0].params.startTimeb");

        System.out.println(byPath);

    }
}
